#include <stdlib.h>
#include <stdio.h>

typedef struct Userinfo
{
	char *name;
	char *passwd;
	int con_socket;
	struct sockaddr_in *useraddr;
}Netuserinfo,*Userinfo;

typedef struct Node
{
	int alive;
	Netuserinfo *user;
	struct Node *next;
}Linklist,*Node;


Linklist * Node_Init(void)
{
	Linklist *head,*foot;
	head=(Linklist *)malloc(sizeof(Linklist));
	foot=(Linklist *)malloc(sizeof(Linklist));
	head->alive = 1;
	head->next = foot;
	head->user = NULL;
	foot->alive = 1;
	foot->next = NULL;
	return head;
}

int insert(Linklist *n, Netuserinfo *info)
{
	Linklist *t = n;
	t = (Linklist *)malloc(sizeof(Linklist));
	t->alive = 1;
	t->user = info;
	t->next = n;
}

int delete(Linklist *n)
{
	Linklist *p;
	p = n->next;
	n->next = p->next;
	p=NULL;
	free(p);
}
